package cn.dz.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * @ClassName DemoController
 * @package: cn.dz.controller
 * @Description TODO
 * @Author dz
 * @Date 2024/12/22 14:49
 * @Version 1.0
 **/
@Controller
@RequestMapping("demo")
public class DemoController {
    private static final Logger log = LoggerFactory.getLogger(DemoController.class);
    @RequestMapping("demo")
    public String demo(Model model) {
        log.debug("ok");
        model.addAttribute("msg", "Hello Thymeleaf!");
        return "demo";
    }

//    @RequestMapping("login")
//    public String login() {
//        return "login";
//    }
}
